﻿using MaiPlanServer.Dto;
using MaiPlanServer.Model;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace MaiPlanServer.IServices.IMasterDataServices
{
    public interface IMaterialProductsManageServices
    {
        public Task<IEnumerable<MD_ITEMDto>> GetJsonAsync(int PageIndex, int PageSize, string mdName, string mdCode, string groupedName);
        public Task<int> GetCountAsync(string mdName,string mdCode, string groupName);
        public Task<IEnumerable<MD_UNIT_MEASURE>> GetUnitJsonAsync();
         
        public Task<bool> AddAsync(MD_ITEM model);

        public Task<bool> UpdateAsync(MD_ITEM model);

        public Task<bool> DelAsync(string Id);
    }
}
